import request from '@/utils/request'

// 渠道列表
export function channelList(params) {
  return request({
    url: '/mapi/channel/list',
    method: 'get',
    params
  })
}

// 渠道详情
export function promocodeInfo(params) {
  return request({
    url: '/mapi/promocode/info',
    method: 'get',
    params
  })
}

// 渠道编辑
export function channelEdit(params) {
  return request({
    url: '/mapi/channel/edit',
    method: 'post',
    params
  })
}
